package com.vita.testCore.value;

public final class Entry<K, V> {
    private final K key;
    private V value;
 
    public Entry(K key, V value) {
        this.key = key;
        this.value = value;
    }
 
    public K getInput() {
        return key;
    }
 
    public V getOutput() {
        return value;
    }
 
    public V setInput(V value) {
        V old = this.value;
        this.value = value;
        return old;
    }
}
